package com.xunqi.domain;

import java.time.LocalDateTime;

/**
 * 公共日志记录
 * 
 * @author yemei
 *
 */
public class CommonAccessLog {

	/** ID */
	private long id;
	/** URI */
	private String uri;
	/** 入参 */
	private String params;
	/** 出参：需要将返回值写入setAttribute中 */
	private String response;
	/** 花费的时间 */
	private long cost;
	/** 访问时间 */
	private LocalDateTime accesstime;

	public CommonAccessLog() {
		super();
	}

	public CommonAccessLog(long id, String uri, String params, String response, long cost, LocalDateTime accesstime) {
		super();
		this.id = id;
		this.uri = uri;
		this.params = params;
		this.response = response;
		this.cost = cost;
		this.accesstime = accesstime;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public String getResponse() {
		return response;
	}

	public void setResponse(String response) {
		this.response = response;
	}

	public long getCost() {
		return cost;
	}

	public void setCost(long cost) {
		this.cost = cost;
	}

	public LocalDateTime getAccesstime() {
		return accesstime;
	}

	public void setAccesstime(LocalDateTime accesstime) {
		this.accesstime = accesstime;
	}

}
